﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Pongtastic
{
    public class Paddle
    {

        public Paddle(Color newPaddleColor, int newPaddleWidth, int newPaddleHeight)
        {
            paddleColor = newPaddleColor;
            paddleWidth = newPaddleWidth;
            paddleHeight = newPaddleHeight;
        }

        public void MovePaddle(int xMove, int yMove)
        {
            //TODO - offset the paddle position by the input settings
        }

        public void PlacePaddle(int xPosition, int yPosition)
        {
            //TODO - set the paddle position to the input values
        }

        public Vector2 Position()
        {
            return paddlePosition;
        }

        public Vector2 UpperLeftCorner()
        {
            return new Vector2(paddlePosition.X - paddleWidth / 2, paddlePosition.Y - paddleHeight / 2);
        }

        public Vector2 UpperRightCorner()
        {
            //TODO - return the correct coordinates
            return new Vector2(60, 100);
        }

        public Vector2 LowerRightCorner()
        {
            //TODO - return the correct coordinates
            return new Vector2(60, 200);
        }

        public Vector2 LowerLeftCorner()
        {
            //TODO - return the correct coordinates
            return new Vector2(30, 200);
        }

        public Color PaddleColor() { return paddleColor; }
        public int Height() { return paddleHeight; }
        public int Width() { return paddleWidth; }

        //our member variables
        private Vector2 paddlePosition;
        private Color paddleColor;
        private int paddleWidth, paddleHeight;
    }
}
